package com.sc.smartcommunity.controller;


import com.sc.smartcommunity.domain.CarPark;
import com.sc.smartcommunity.domain.Mall;
import com.sc.smartcommunity.service.CarParkService;
import com.sc.smartcommunity.service.MallService;
import io.swagger.v3.oas.annotations.Operation;
import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/car")
public class CarParkController {

    @Resource
    private CarParkService carParkService;


    @GetMapping("/list")
    @Operation(summary = "获取车位信息")
    public List<CarPark> list(Integer status) {
        return carParkService.selectList(status);
    }

}